<?php
class indexMod extends commonMod{

	public function index(){


		// 首页BANNER广告
		$ads = __query("select * from {tabpre}ads where classid='1109' and `show`=1 and `recover`=0 order by sequence desc,id desc");
		$this->assign('ads', $ads);
		
		// 新闻中心
		$news = __query("select * from {tabpre}news where classid=1136 and `show`=1 and `recover`=0 and `rmd`=1 order by sequence desc,id desc limit 4");
		$this->assign('news', $news);

		// 电视剧
		$tv1137 = __query("select * from {tabpre}tv where classid=1137 and pic2<>'' and `show`=1 and `recover`=0 and `rmd`=1 order by sequence desc,id desc limit 4");
		$this->assign('tv1137', $tv1137);

		// 电影
		$tv1138 = __query("select * from {tabpre}tv where classid=1138 and pic2<>'' and `show`=1 and `recover`=0 and `rmd`=1 order by sequence desc,id desc limit 4");
		$this->assign('tv1138', $tv1138);	




		$this->display('index');
	}

}